<template>
  <basic-container>
    <avue-crud
      v-bind="bindVal"
      :permission="permission"
      v-on="onEvent"
      v-model="form"
      :page.sync="page"
    ></avue-crud>
  </basic-container>
</template>

<script>
export default window.$crudCommon(
  {
    data() {
      return {};
    },
    methods: {},
  },
  {
    name: "permission/account", //模块名字
    list: "list", //列表接口名字
    update: "update", //更新接口名字
    add: "add", //新增接口名字
    del: "del", //删除接口名字
    rowKey: "id", //主键
    pageNumber: "pageNumber", //页码
    pageSize: "pageSize", //页数
    res: (data) => ({ data: data.data.list, total: data.data.total }), //列表的结构
    total: "total", //总页数
    data: "data", //列表属性
    role: {
      addBtn: "top-permission-2-addBtn",
      editBtn: "top-permission-2-editBtn",
      delBtn: "top-permission-2-delBtn",
    },
  }
);
</script>
<style lang="scss" scoped>
</style>